//
//  JSModelManager.h
//  JigSaw
//
//  Created by slim on 15/1/26.
//  Copyright (c) 2015年 LITB. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "JSStencilItem.h"
#import "PGJSImageItem.h"
#import "JSStencilItemDesc.h"

typedef enum {
    E_ITEM_IMAGE = 1,
    E_ITEM_TEXT,
    E_ITEM_DECORATION,
    E_ITEM_LINE,
    E_ITEM_DATE,
} E_ITEM_TYPE;

@interface JSModelManager : NSObject

MACRO_SHARED_INSTANCE_INTERFACE
@property(nonatomic, assign)NSInteger selectedModelIndex;
@property(nonatomic, strong)NSMutableArray* stencils;
@property(nonatomic, copy)NSString* modelBundlePath;
- (NSArray*)getProperModelByImageCount:(NSInteger)count;
- (JSStencilItem*)parseDictToStencilItem:(NSDictionary*)dic;
- (PGJSImageItem*)getImageItem;
- (void)getModelList;
- (NSDictionary*)getCurrentStencilItems;
- (UIImage*)getThumbnailImage:(NSInteger)index;

@end
